<?
/*
 *  GGB - Gelin's Guest Book.
 *  Copyright (C) 2006  Denis Nelubin aka Gelin
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *  http://gelin.ru
 *  mailto:den@gelin.ru
 *
 *  Description:    Template of banned IP.
 *
 *  History:
 *  2006-06-25  Gelin   Initially created.
 *  2007-02-04  Gelin   Modified for new header processing.
 *
 */
?>

<tr>
    <?foreach ($config['check_header'] as $key => $header):?>
        <td>
            <?$header = $ban['headers'][$key]?>
            <?if ($header['is_ip']):?>
                <?if (isset($header['host_value'])):?>
                    <?=$header['value']?>
                    (<?=$header['host_value']?>)
                <?else:?>
                    <a href="ip-info.php?ip=<?=$header['value']?>"
                        target="_blank" title="View host name"
                        onclick="window.open('ip-info.php?ip=<?=$header['value']?>', 'ip-info',
                                'width=500,height=150,location=no,menubar=no,status=no,toolbar=no');
                                return false;"><?=$header['value']?></a>
                <?endif;?>
            <?else:?>
                <?=$header['value']?>
            <?endif;?>
        </td>
    <?endforeach;?>
    <td><?=$ban['create_time']?></td>
    <td class="actions"><a href="?action=admin-ban-delete-submit&id=<?=$ban['id']?>">delete</a></td>
</tr>
